<%--
  Created by IntelliJ IDEA.
  User: Sarah
  Date: 2023/3/23
  Time: 10:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <base href="<%= basePath %>"/>
    <title>响应数据测试页面</title>
</head>
<body>
<h3>响应字符串</h3><br/>
<a href="resp1">方式一：通过resonse响应字符串</a><br/>
<a href="resp2">方式二：通过@ResponseBody来响应字符串</a><br/>
<h3>响应bean对象</h3><br/>
<a href="resp3">响应bean对象</a><br/>
</body>
</html>